1.
Average blurring
Smoothes the image using an average filter.
BLUR
Original
Augmented
transformation = createTechnique("average_blurring", {"kernel": 5})
Original
Augmented
transformation = createTechnique("average_blurring", {"kernel": 11})
2.
Bilateral blurring
Applies bilateral blurring to the image.
BLUR
Original
Augmented
transformation = createTechnique("bilateral_blurring", {"diameter": 17,
"sigmaColor": 31, "sigmaSpace": 11})
3.
Blurring
Blurs an image using the normalized box filter.
BLUR
Original
Augmented
transformation = createTechnique("blurring", {"ksize": 5})
Original
Augmented
transformation = createTechnique("blurring", {"ksize": 11})
4.
Crop
Crops pixels at the sides of the image.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("crop",{"percentage": 0.7,
"startFrom": "TOPRIGHT"})
5.
Dropout
Sets some pixels in the image to zero.
DROPOUT
Original
Augmented
transformation = createTechnique("dropout",{"percentage": 0.05})
Original
Augmented
transformation = createTechnique("dropout",{"percentage": 0.5})
6.
Elastic deformation
Applies elastic deformation as explained in the paper P. Simard, D. Steinkraus, and J. C. Platt. Best practices for convolutional neural networks applied to visual document analysis. Proceedings of the 12th International Conference on Document Analysis and Recognition (ICDAR’03) vol. 2, pp. 958–964. IEEE Computer Society. 2003 .
DISTORTION
Original
Augmented
# alpha controlla l'intensità della deformazione
# sigma è il coefficiente di elasticità
transformation = createTechnique("elastic",{"alpha": 34,"sigma": 4})
Original
Augmented
Original
Augmented
transformation = createTechnique("elastic",{"alpha": 34,"sigma": 3.5})
7.
Equalize histogram
Applies histogram equalization to the image.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("equalize_histogram",{})
8.
Flip
Flips the image horizontally, vertically or both.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("flip",{"flip": 0})
Original
Augmented
transformation = createTechnique("flip",{"flip": 1})
Original
Augmented
transformation = createTechnique("flip",{"flip": -1})
9.
Gamma correction
Applies gamma correction to the image.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("gamma",{"gamma": 0.3})
Original
Augmented
transformation = createTechnique("gamma",{"gamma": 1.7})
10.
Gaussian blurring
Blurs an image using a Gaussian filter.
BLUR
Original
Augmented
transformation = createTechnique("gaussian_blur", {"kernel": 9})
11.
Gaussian noise
Adds Gaussian noise to the image.
NOISE
Original
Augmented
transformation = createTechnique("gaussian_noise", {"mean": 0,"sigma": 30})
12.
Invert
Inverts all values in images, i.e. sets a pixel from value v
to 255-v
.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("invert",{})
13.
Median blurring
Blurs an image using the median filter.
BLUR
Original
Augmented
transformation = createTechnique("median_blur", {"kernel": 9})
14.
Raise blue channel
Modifies the values in the blue channel based on the provided parameter.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_blue", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_blue", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_blue", {"power": 4})
15.
Raise green channel
Modifies the values in the green channel based on the provided parameter.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_green", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_green", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_green", {"power": 4})
16.
Raise hue
Raises the hue value.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_hue", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_hue", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_hue", {"power": 4})
17.
Raise red channel
Modifies the values in the red channel based on the provided parameter.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_red", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_red", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_red", {"power": 4})
18.
Raise saturation
Modifies the saturation based on the provided parameter.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_saturation", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_saturation", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_saturation", {"power": 4})
19.
Raise value
Modifies the value based on the provided parameter.
PHOTOMETRY
Original
Augmented
transformation = createTechnique("raise_value", {"power": 0.26})
Original
Augmented
transformation = createTechnique("raise_value", {"power": 0.9})
Original
Augmented
transformation = createTechnique("raise_value", {"power": 4})
20.
Resize
Resizes the image.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("resize", {"percentage" : 0.3,
"method":"INTER_NEAREST"})
21.
Rotate
Rotates the image.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("rotate", {"angle" : 45})
22.
!
Salt and Pepper
Adds salt and pepper noise to the image.
NOISE
Original
Augmented
transformation = createTechnique("salt_and_pepper", {"low": 50,"up": 0})
Original
Augmented
transformation = createTechnique("salt_and_pepper", {"low": 0,"up": 50})
Original
Augmented
transformation = createTechnique("salt_and_pepper", {"low": 50,"up": 50})
23.
Sharpen
Sharpens the image.
SHARPNESS
Original
Augmented
transformation = createTechnique("sharpen", {})
24.
Shearing
Shears the image.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("shearing", {"a": 0.5})
Original
Augmented
transformation = createTechnique("shearing", {"a": -0.3})
25.
!
Shift channels
Shifts input image channels in the range given (value between 0 and 1).
PHOTOMETRY
26.
Translation
Translates the image.
BASIC GEOMETRY
Original
Augmented
transformation = createTechnique("translation", {"x": 40,"y": 10})
Original
Augmented
transformation = createTechnique("translation", {"x": -100,"y": -300})